﻿
namespace CDV.IRMS.WebAPI.TaskExecution.Data
{
    /// <summary>
    /// 路由执行参数
    /// </summary>
    public class ExecuteParameter
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        public int TaskID { get; set; }

        /// <summary>
        /// 路由ID
        /// </summary>
        public int RouteID { get; set; }

        /// <summary>
        /// 源流节点ID
        /// </summary>
        public string SrcNodeID { get; set; }

        /// <summary>
        /// 目的流节点ID
        /// </summary>
        public string DestNodeID { get; set; }

        /// <summary>
        /// true:执行矩阵切换
        /// </summary>
        public bool DoTake { get; set; }

        /// <summary>
        /// true:执行端口保护
        /// </summary>
        public bool DoLock { get; set; }

        /// <summary>
        /// 输出入参信息
        /// </summary>
        /// <returns>入参信息</returns>
        public override string ToString()
        {
            return $"TaskID={TaskID}, RouteID={RouteID}, SrcNodeID={SrcNodeID}, DestNodeID={DestNodeID}, DoTake={DoTake}, DoLock={DoLock}";
        }
    }
}
